<?php
namespace Products\Model;

class Industry
{
	public $industry_id;
	public $industryname;
	public $category_id;
	public $in_status;
	public $country_id;
	public $nicename;
	
	public function exchangeArray($data){
	
		$this->industry_id          = (isset($data['industry_id']))         ? $data['industry_id']  : null;
		$this->industryname       = (isset($data['industryname']))    ? $data['industryname']	  : null;		
		$this->category_id        = (isset($data['category_id']))     ? $data['category_id']  : null;		
		$this->in_status           = (isset($data['in_status']))     ? $data['in_status']  : null;		
		$this->country_id           = (isset($data['country_id']))     ? $data['country_id']  : null;	
		$this->nicename           = (isset($data['nicename']))     ? $data['nicename']  : null;				
	  }

	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}